package us.codecraft.tinyioc;

import us.codecraft.tinyioc.beans.BeanPostProcessor;

/**
 * @author td
 * @date 2018/5/31
 */
public class BeanInitializeLogger2 implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanInitializeLogger2"+beanName+"before");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanInitializeLogger2"+beanName+"after");
        return bean;
    }
}
